package com.balabala.gym_system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableFeignClients({"com.balabala","com.balabala.goods"})
@MapperScan(value = {"com.balabala.gym_system.mapper"})
public class SystemApplication8004 {
    public static void main(String[] args) {
        SpringApplication.run(SystemApplication8004.class, args);
    }

    @Bean
    RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
